home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / lfs / lfsMemInt.h < prev    next >
C/C++ Source or Header  |  1990-10-19  |  1KB  |  44 lines

  1. /*
  2.  * lfsMemInt.h --
  3.  *
  4.  *    Declarations of Lfs memory resource management routines and
  5.  *    data structures.
  6.  *
  7.  * Copyright 1990 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: /sprite/src/kernel/lfs/RCS/lfsMemInt.h,v 1.1 90/10/19 16:03:47 mendel Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _LFSMEMINT
  20. #define _LFSMEMINT
  21.  
  22.  
  23. /* data structures */
  24.  
  25. /*
  26.  * LfsMem - Per LFS file system resource list.
  27.  */
  28. typedef struct LfsMem {
  29.     int    cacheBlocksReserved; /* Number of cache blocks reserved for this file
  30.                   * system. */
  31. } LfsMem;
  32.  
  33. /* procedures */
  34.  
  35. extern void LfsMemInit _ARGS_((struct Lfs *lfsPtr));
  36. extern void LfsMemDetach _ARGS_((struct Lfs *lfsPtr));
  37. extern void LfsMemReserve _ARGS_((struct Lfs *lfsPtr, int *cacheBlocksPtr,
  38.                 char **memPtrPtr));
  39. extern void LfsMemRelease _ARGS_((struct Lfs *lfsPtr, int cacheBlocks, 
  40.                 char *memPtr));
  41.  
  42. #endif /* _LFSMEMINT */
  43.  
  44.